/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 * Author: Huawei OS Kernel Lab
 * Create: Thu Aug 15 16:14:23 2023
 */

#ifndef __LIBILNUX_ASM_CACHE_H
#define __LIBILNUX_ASM_CACHE_H

#define cache_line_size_of_cpu	____cache_line_size_of_cpu
#include_next <asm/cache.h>
#undef cache_line_size_of_cpu

#ifndef __ASSEMBLY__
static inline int cache_line_size_of_cpu(void)
{
	return L1_CACHE_BYTES;
}
#endif

#endif
